package service.impl;

import dao.DormitoryDao;
import dao.impl.DormitoryDaoImpl;
import entity.Dormitory;
import service.DormitoryService;

import java.sql.SQLException;
import java.util.List;

public class DormitoryServiceImpl implements DormitoryService {
    DormitoryDao a=new DormitoryDaoImpl();

    @Override
    public List<Dormitory> cx1(Integer lid) throws SQLException, ClassNotFoundException {
        return a.cx1(lid);
    }

    @Override
    public int sc(int id) throws SQLException, ClassNotFoundException {
        return a.sc(id);
    }

    @Override
    public int tj(String building_name, String address, int manager_id, int total_floors) throws SQLException, ClassNotFoundException {
        return a.tj(building_name,address,manager_id,total_floors);
    }

    @Override
    public int xg(String building_name, String address, int manager_id, int total_floors,int building_id) throws SQLException, ClassNotFoundException {
        return a.xg(building_name,address,manager_id,total_floors,building_id);
    }

    @Override
    public List<Dormitory> cx(Integer lid, int page, int pageSize) throws SQLException, ClassNotFoundException {
        return cx(lid, page, pageSize);
    }

    @Override
    public int getTotalCount(Integer lid) throws SQLException, ClassNotFoundException {
        return getTotalCount(lid);
    }


}
